import request from '@/utils/request';

export const waterQualityService = {
  // 获取实时数据
  getRealtimeData(tableName) {
    return request.get(`/${tableName}/realtime`);
  },

  // 获取历史数据
  getHistoryData(tableName) {
    return request.get(`/${tableName}/history`);
  }
};
